//
//  XLTextCalculateHelper.h
//  campus
//
//  Created by xl on 2019/11/19.
//  Copyright © 2019 xl. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XLTextCalculateHelper : NSObject
//textField 文本将要变动
+ (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string textLimit:(NSUInteger)textLimit;

//textView 文本将要变动
+ (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text textLimit:(NSUInteger)textLimit;

//textField 文本变动
+ (BOOL)textFieldDidChangeWillContinue:(UITextField *)textField textLimit:(NSUInteger)textLimit;

//textView 文本变动
+ (BOOL)textViewDidChangeWillContinue:(UITextView *)textView textLimit:(NSUInteger)textLimit;

@end

NS_ASSUME_NONNULL_END
